<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<!-- RichFaces tag library declaration -->
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>

<a4j:form>

</a4j:form>
<rich:panel style="width:225px;" styleClass="loginForm">
    <a4j:form>
        <h:panelGrid columns="2" style="width:220px">
            <h:outputText value="Привет, "/>
            <h:outputText value="#{loginBean.authUser.firstName} #{loginBean.authUser.lastName}!"/>


            <a4j:commandLink id="logoutCommand" value="Выйти" action="#{loginBean.doLogout}"
                             reRender="userAuthGroup"/>
            <a4j:commandLink id="myOrders" value="Мои заказы" action="#{mailSender.sendEmail}"/>
            <h:outputText value="."/>
        </h:panelGrid>
    </a4j:form>
</rich:panel>